/**
 * File: BatchBucketLoadController.java
 * Created by: mhaimel
 * Created on: 1 Sep 2009
 * CVS:  $Id: BatchBucketLoadController.java,v 1.1 2009/10/09 14:59:25 mhaimel Exp $
 */
package uk.ac.ebi.curtain.controller.writer;

import java.io.File;

import uk.ac.ebi.curtain.controller.ParallelQueuedController;
import uk.ac.ebi.curtain.controller.SimpleReport;
import uk.ac.ebi.curtain.management.IControllerReport;
import uk.ac.ebi.curtain.processor.writer.BucketCollectionBean;
import uk.ac.ebi.curtain.processor.writer.impl.BatchBucketLoadProcessor;

/**
 * @author mhaimel
 *
 */
public class BatchBucketLoadController extends ParallelQueuedController<File, BucketCollectionBean, BatchBucketLoadProcessor> {

	@Override
	protected IControllerReport getReturnCall() {
		return new SimpleReport("Finished");
	}
	
	@Override
	protected BatchBucketLoadProcessor buildController() {
		BatchBucketLoadProcessor job = getContext().getInjector().getInstance(BatchBucketLoadProcessor.class);
		return job;
	}
}
